package com.bci.pwtz.mysql.dao;

import org.apache.ibatis.annotations.Param;

import com.bci.pwtz.mysql.model.CompanyUserAudit;

public interface CompanyUserAuditMapper {
    int deleteByPrimaryKey(Long auditId);

    int insert(CompanyUserAudit record);

    int insertSelective(CompanyUserAudit record);

    CompanyUserAudit selectByPrimaryKey(Long auditId);

    int updateByPrimaryKeySelective(CompanyUserAudit record);

    int updateByPrimaryKey(CompanyUserAudit record);
    
    int updateById(@Param("companyUserAuditId")Long companyUserAuditId,@Param("result")int result);
    
    void updateExpireStatus(int auditValid);
    
    int selectByUserId(@Param("companyUserId")Long companyUserId,@Param("companyId")Long companyId);
    
    CompanyUserAudit selectCompanyUserAuditByUserId(@Param("companyUserId")Long companyUserId,@Param("companyId")Long companyId);

    int selectCompanyNumByUserId(@Param("companyUserId")Long companyUserId);
}